import './assets/main.css'
import ElementPlus from 'element-plus'
import { createApp } from 'vue'
import pinia from '@/stores/index'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import App from './App.vue'

import router from './router'
// 引入echarts
import Echarts from 'vue-echarts'
import * as echarts from 'echarts'

const app = createApp(App)
//引入中文版Element-plus
app.use(ElementPlus, {
    locale: zhCn,
  })

// 使用组件
app.component('e-charts',Echarts)
// 全局挂载 echarts
app.config.globalProperties.$echarts = echarts

app.use(pinia)
app.use(router)
app.mount('#app')
